package com.xls.app.dao;

import com.xls.app.bean.Book;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookDao {

    List<Book> listPage(@Param("page")int page,
                        @Param("size")int size,
                        @Param("bname")String bname);

    int count(@Param("bname") String bname);

    int save(Book book);

    int remove(List<Integer> list);

    int  update(Book book);
}
